package com.hopkinscsc.windows;

import java.awt.*;
/**
 * An extension of the Element class for text
 * @see Element
 * @author Sammy
 *
 */
public class Text extends Element{
    private static String text;
    
    public Text(String text, int x, int y){
        super(x, y, 0, 0);
        this.text = text;
    }
    
    public static String getText() {
    	return text;
    }
    
    public void draw(Graphics g){
        g.setColor(Color.BLACK);
        g.drawString(getText(), getX(), getY());
    }
}
